<?php
require('includes/top.php');
$question = $_POST["question"];
$answer= $_POST["ans"];

$sql="INSERT INTO answers(`faq_id`,`answers`) VALUES ('$question','$answer')";
$result=mysql_query($sql);
 if($result)
 {
header("location:add_ans.php");
}
 else
 {
	 echo mysql_error();
 }
ob_flush();
?>
 